gtk/window: Only fake motion events on windows with pending allocations
authorJonas Ådahl <jadahl@gmail.com>
Thu, 3 Dec 2020 21:50:31 +0000 (22:50 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:29 +0000 (20:37 +0100)
commit19d2a4ab947f807b68a5d2cda5c68b6bfa0a5d17
tree092817abc1236b0e79097709472d21e84a6930f9
parent6ee7535af07e14193436876eafed6297916d0ca2
gtk/window: Only fake motion events on windows with pending allocations

This fixes an issue where the focus of the window continuously received
fake motion events even when a popover was open, making input events end
up behind the popover.

It also adds a comment describing why motion events are requested. Note
that popovers won't work with this, and it's possible both in the past
and now that sporadic missplaced motion events will appear, e.g. when a
window changes allocation but a popover is open.
gtk/gtkwindow.c